package com.listener;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringApplicationRunListener;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.stereotype.Component;


public class MyApplicationRunListener implements SpringApplicationRunListener {
    private SpringApplication springApplication;
    private String[] args;
    public MyApplicationRunListener(SpringApplication springApplication, String[] args) {
        this.springApplication = springApplication;
        this.args = args;
    }

    @Override
    public void running(ConfigurableApplicationContext context) {
        System.out.println("=======执行ReadyEvent事件回调========");
    }
}
